#app,
#main,
html {
  width: 100%;
  height: 100%;
}

body {
  font-family: $font-family;
  background-color: $body-bg-color;
  color: $color-gray-dark;
  font-size: $font-size-base;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1;
}

// 设置标题统一样式
$headings: (
  h1: $font-size-larger,
  h2: $font-size-large,
  h3: $font-size-base
);
@each $header, $size in $headings {
  #{$header} {
    @include line-height($size)
  }
}

ul {
  li {
    list-style: none;
  }
}

a {
  cursor: pointer;
  color: $link-color;
  text-decoration: none;
  font-weight: normal;

  &:focus,
  &:active {
    border: 0;
    outline: none;
  }
}

textarea {
  overflow: auto;
}

body,
div,
dl, dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td,
hr,
button,
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  margin: 0;
  padding: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}
